//
//  smBaseViewController.m
//  shimaoHouse
//
//  Created by 稳 张 on 12-7-9.
//  Copyright (c) 2012年 yst. All rights reserved.
//

#import "smBaseViewController.h"


@interface smBaseViewController () <MBProgressHUDDelegate>

@property (nonatomic, strong) MBProgressHUD* mbprogress;


@end


@implementation smBaseViewController



@synthesize mbprogress = _mbprogress;

-(void) viewDidLoad{
    [super viewDidLoad];
    self.navigationController.navigationBar.tintColor=[UIColor colorWithRed:56/255.0 green:152/255.0 blue:154/255.0 alpha:1.0];
    //[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"navigationBar.png"] forBarMetrics:UIBarMetricsDefault];
}

-(void) showMbprogress {
    
    if(!_mbprogress)
    {
        _mbprogress = [[MBProgressHUD alloc]initWithFrame:self.view.bounds];
        [_mbprogress setBackgroundColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.6]];
        _mbprogress.labelText = @"正在加载";
        _mbprogress.delegate = self;
        
        [self.view addSubview:_mbprogress];
    }
    
    [self.mbprogress show:YES];
}


-(void) hideMbProgress {
    [self.mbprogress hide:YES];
}


@end
